package cn.wch.ch934xlib.connet;

import android.hardware.usb.UsbDeviceConnection;
import android.hardware.usb.UsbEndpoint;
import android.hardware.usb.UsbRequest;

import androidx.annotation.NonNull;

import java.nio.ByteBuffer;

public interface IUsbRequestPool {
    void init(@NonNull UsbDeviceConnection usbDeviceConnection, @NonNull UsbEndpoint usbEndpoint);

    UsbRequest getUsbRequest(@NonNull UsbEndpoint usbEndpoint);

    void queue(@NonNull UsbEndpoint usbEndpoint);

    ByteBuffer getBuffer(@NonNull UsbEndpoint usbEndpoint);
}
